package com.yuntu.chapter5;

/**
 * @author MrWang-shuizhishuiheshui
 * @description
 */
public class Demo7 {
    public static void main(String[] args) {
        //外层循环,循环行数
        /*for (int i = 0; i < 5; i++) {
            //内层循环,循环每一行中的个数
            for (int j = 0; j < 5; j++) {
                System.out.print("*");
            }
            //个数输出之后,进行换行
            System.out.println();
        }*/

        for (int i = 0; i < 5; i++) {
            for (int j = 0; j < 5-i; j++) {
                System.out.print("*");
            }
            System.out.println();
        }

    }
}
